//
//  File.swift
//
//
//  Created by didi on 2022/9/7.
//

import Foundation

/// generic role object that contains permissions
public struct Role: Codable {
    /// unique key of the role
    public let key: String
    /// array of permissions associated to the role
    public let permissions: [Permission]

    /// init a new role object using a key and the permissions
    public init(key: String, permissions: [Permission]) {
        self.key = key
        self.permissions = permissions
    }
}
